#include <stdio.h>
#include <conio.h>
void main( )
{
    int num1,num2,ans,flag;
    char op;
    printf("Please input an expression:");
    scanf("%d%c%d",&num1,&op,&num2);
    flag=0;
    switch(op)
    {
        case '+': ans=num1+num2; break;
        case '-': ans=num1-num2; break;
        case '*': ans=num1*num2; break;
        case '/': ans=num1/num2; break;
        default:
            { printf("Error!\n"); flag=1; }
    }
    if(flag==0)
    {
        printf("%d %c %d = %d\n",num1,op,num2,ans);
    }
}